<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\LinkPager;

$this->registerJsFile('/js/admingoods/authlist.js?v=1.0.3');
/* @var $this yii\web\View */
/* @var $searchModel app\models\search\UserSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = '商品审核';
$this->params['breadcrumbs'][] = $this->title;
?>
<style>
	.layui-table img {max-width: 100%;}
</style>
<input type="hidden" id="front-server" value="<?=$front_server?>"/>
<div class="pt15 pl15">当前位置：<span class="layui-breadcrumb"><a href="/">首页</a><a href="/admingoods/default/index">商品管理</a><a><cite>商品审核</cite></a></span></div>
  <div class="layui-fluid goods-autohlist">
    <div class="layui-card p30">		
		<div class="border-b pb15 f22">商品审核</div>	
		<div class="layui-card-body p0 mt15">		 
			<table class="layui-table">					
				<thead>
					<tr>
						<th>ID</th>
						<th>商品名称</th>
						<th>价格</th>
						<th>状态</th>
						<th>操作</th>
					</tr> 
				</thead>
			  <tbody>
				<?php 
                                
                                    
                                
                                foreach($data['goodsdata'] as $key=>$val){?>
                                <tr id="goods-<?= $val['id'];?>">
                                    <td><?= $val['id']; ?></td>
                                    <td><?= $val['name']; ?></td>
                                    <td><?= $val['price']; ?></td>
                                    <td><span class="layui-badge layui-bg-green"><?= $val['status'] == 0 ? "待审核":""; ?></span></td>
                                    <td>
                                        <span class="layui-btn layui-btn-xs layui-btn-normal goods-auth" data-goodsid="<?= $val['id'] ?>" data-goodsname="<?= $val['name'] ?>">审核</span>
                                    </td>
                                </tr>
				<?php }?>
				</tbody>
			</table>
			
			<div class="p-tradelist-pager text-c"><?= $page?></div>		
		</div>
    </div>
  </div>
